package com.study.zk.consumer.feignClient;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.HashMap;
import java.util.List;

@FeignClient("zk-producer")
public interface GoodsClient {
    @GetMapping("/goods/")
    public List<HashMap<String, Object>> getAllGoods();
}
